package com.starlink.model.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.starlink.common.domain.BaseEntity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author zhanghong
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("mall_books_order")
public class MallBooksOrderDO extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;
    /** 用户ID */
    @TableField("user_id")
    private Long userId;
    /** 收货地址ID */
    @TableField("address_id")
    private Long addressId;
    /** 订单状态 */
    @TableField("status")
    private String status;
    /** 订单编号 */
    @TableField("order_num")
    private String orderNum;
    /** 总价（包含运费） */
    @TableField("total_amount")
    private BigDecimal totalAmount;
    /** 运费 */
    @TableField("freight")
    private BigDecimal freight;
    /** 规格 */
    @TableField("specification")
    private String specification;
    /** 超时时间 */
    @TableField("timeout")
    private Date timeout;
    /** 备注 */
    @TableField("comments")
    private String comments;
    /** 取消时间 */
    @TableField("cancel_time")
    private Date cancelTime;
}
